package org.example.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 
 * @TableName tb_stock
 */
@TableName(value ="tb_stock")
@ApiModel("这是Stock实体类")
@Data
public class Stock implements Serializable {
    /**
     * 编号
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 股票代码
     */
    private String stockCode;

    /**
     * 股票名称
     */
    private String stockName;

    /**
     * 最新价
     */
    private BigDecimal latestPrice;

    /**
     * 涨跌额
     */
    private BigDecimal rangeNum;

    /**
     * 涨跌幅
     */
    private BigDecimal priceLimit;

    /**
     * 买入价
     */
    private BigDecimal bidPrice;

    /**
     * 卖出价
     */
    private BigDecimal sellingPrice;

    /**
     * 昨日收盘价
     */
    private BigDecimal yesterdayPrice;

    /**
     * 今日开盘价
     */
    private BigDecimal todayPrice;

    /**
     * 今日最高价
     */
    private BigDecimal todayMaxprice;

    /**
     * 今日最低价
     */
    private BigDecimal todayMinprice;

    /**
     * 成交量
     */
    private Integer tradingVolume;

    /**
     * 成交额
     */
    private BigDecimal volumeBusiness;

    /**
     * 成交时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date closingDate;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}